<template>
<div>
  	<div v-if="userdata.level == 0">
  		<membercenter></membercenter>
  	</div>

  	<div v-if="userdata.level != 0">
  		<sellercenter></sellercenter>
  	</div>
</div>
</template>

<script>

import { Cell, Button, Badge, MessageBox} from 'mint-ui'
import { mapGetters } from 'vuex'

import sellercenter from './sellercenter'
import membercenter from './membercenter'

export default {
	name: 'Mine',
	data () {
		return {
			msg: '我的。。。。。。'
		}
	},

	computed : {
		...mapGetters([
			'company_code',
			'userdata',
		]),
	},


	components: {
		sellercenter,
		membercenter,
	},

	methods : {
		
	},

	// mounted () {

	// 	const para = {
	// 		fun : 'checkneedauthtest',
	// 		requestType : 'get',
	// 		cb : res => {
	// 			console.log(res);
	// 			if(res == '0'){
	// 				this.$dialog.alert({'mes' : '不需要授权'});
	// 			}else if(res == '2'){
	// 				this.$dialog.alert({'mes' : '没有公众号'});
	// 			}else{
	// 				this.$dialog.alert({'mes' : JSON.stringify(res)});
	// 			}

	// 		}
	// 	};

	// 	this.$store.dispatch('update', para);

	// },

}
</script>

<style scoped>

</style>
